package com.twu.biblioteca;

public class Movie {
    private  int movieId;
    private  String movieName;
    private  String year;
    private  String director;
    private  int rating;
    private int status=0;

    @Override
    public String toString() {
        String temp = status == 0 ? "available" : "lended";
        return movieId+"          "+movieName+"        "+year+"      "+director+"         "+rating+"        "+temp;
    }

    public Movie(int movieId, String movieName, String year, String director, int rating) {
        this.movieId=movieId;
        this.movieName=movieName;
        this.year=year;
        this.director=director;
        this.rating=rating;

    }

    public int getMovieId() {
        return movieId;
    }

    public void setMovieId(int movieId) {
        this.movieId = movieId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
